<?php
class BL_User{
	public static function isAuthorizedToExecute($objBO_User,$functionName) {
		if($objBO_User->isAdmin){
			return true;	
		}
		else{
			$name_parts = explode('_',$functionName);
			if($name_parts[0]==="generic"){
				return true;
			}
			else{
				return in_array($fcn_name,$objBO_User->getFunctions());
			}
		}	
	}
}
?>